package com.yzt;

public class Cat {
    private String name;
    private String color;
    private String sex;
    public Cat() {}
    public Cat(String name, String color, String sex) {
        this.name = name;
        this.color = color;
        this.sex = sex;
    }
    public void eat() {
        System.out.println(name + "会吃饭");
    }
    public void catchMouse() {
        System.out.println(name + "会抓老鼠");
    }

}
